package com.dangdang.domain;

import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;
/**
 * 
 *	
 * @author Wangpeihu
 * @team  [Never give up]
 * @since JDK1.6(建议)
 * @date 2010-2-3
 */
public class Order implements Serializable {

	private static final long serialVersionUID = 1L;

	/** 订单ID */
	private Integer id;

	/** 用户ID,用于标识属于哪一个用户 */
	private User userId;

	/** 订单状态,用户标识该订单是否已经发货 */
	private Integer status;

	/** 订单下单时间 */
	private String orderTime;

	/** 合计金额 */
	private double totalPrice;

	/** 收件人姓名 */
	private String receiveName;

	/** 详细地址 */
	private String fullAddress;

	/** 邮政编码 */
	private String postalCode;

	/** 固定电话 */
	private String mobile;

	/** 该订单所拥有的详细条目 */
	private Set<Item> items = new HashSet<Item>(0);

	public Set<Item> getItems() {
		return this.items;
	}

	public void setItems(Set<Item> items) {
		this.items = items;
	}

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getStatus() {
		return this.status;
	}

	public User getUserId() {
		return this.userId;
	}

	public void setUserId(User userId) {
		this.userId = userId;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public String getOrderTime() {
		return this.orderTime;
	}

	public void setOrderTime(String orderTime) {
		this.orderTime = orderTime;
	}

	public double getTotalPrice() {
		return this.totalPrice;
	}

	public void setTotalPrice(double totalPrice) {
		this.totalPrice = totalPrice;
	}

	public String getReceiveName() {
		return this.receiveName;
	}

	public void setReceiveName(String receiveName) {
		this.receiveName = receiveName;
	}

	public String getFullAddress() {
		return this.fullAddress;
	}

	public void setFullAddress(String fullAddress) {
		this.fullAddress = fullAddress;
	}

	public String getPostalCode() {
		return this.postalCode;
	}

	public void setPostalCode(String postalCode) {
		this.postalCode = postalCode;
	}

	public String getMobile() {
		return this.mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

}